window.main = window.main || {};


main.layer = new qinglan.Canvas.Layer('main', 1);

main.pre = function() {

};

main.init = function() {
	var font = new qinglan.Canvas.Font('title',new qinglan.Canvas.Vector2(100,100),{
		msg: 'Touhou',
		color: new qinglan.Canvas.Color(1,0,0,.5),
		size: 60,
		textAlign: 'center',
		shadowColor: new qinglan.Canvas.Color(0,0,0,.5),
		shadowOffsetX: 10,
		shadowOffsetY: 10,
		shadowBlur: 4
	});

	var animFont = new qinglan.Canvas.Animate(font,{
		rotation: 60,
		alpha :.6,
		shadowOffsetX: 50,
		shadowOffsetY: 50,
		'position.x': 200
	},{
		delay: 0,
		equal: qinglan.Tween.Quadratic.easeInOut,
		type: 'to',
		duration: 1000
	});
	animFont.start();
	main.layer.addSprite(animFont);
	qinglan.Canvas.World.frm.addLayer(main.layer);
	

	qinglan.Canvas.World.frm.start();
};

main.init();
